<?php
include ("functions.php");

echo '<?xml version="1.0" encoding="utf-8" ?>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" xmlns:locify="http://client.locify.com/locify_ns/1.0" xml:lang="'.$lang["lang"].'" lang="'.$lang["lang"].'">
	<head>
		<title>'.$lang["service_name"].'</title>
	</head>
	<body class="form">
		<form action="'.SERVICE_URL.'geocode.php" method="post">
			<locify:variables>
				<locify:element name="latitude" value="$lat" />
				<locify:element name="longitude" value="$lon" />
			</locify:variables>
			<fieldset>
				'.$lang["from"].': <locify:where />
					<input type="hidden" name="latitude" value="" />
					<input type="hidden" name="longitude" value="" />
				<br />
				'.$lang["where"].': <input type="text" name="to" value="" />
				<br />
				'.$lang["route_version"].':
					<select name="full">
						<option value="0">'.$lang['short'].'</option>
						<option value="1">'.$lang['full'].'</option>
					</select>
				<br />
				<input type="submit" value="'.$lang["send"].'" name="submit" />
				<br />
				'.$lang["name"].': <input type="text" name="name" value="" />
				</fieldset>
		</form>
	</body>
	</html>';

?>
